const {generateToken, verifyToken} = require('../utils/token');

const token = generateToken({
  user_id: 1,
  user_name: "andy",
  time: new Date().getTime()
});
console.log(token);

const res = verifyToken('eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoxLCJ1c2VyX25hbWUiOiJhbmR5IiwidGltZSI6MTYyODY0NTYyNDA4OSwiaWF0IjoxNjI4NjQ1NjI0LCJleHAiOjE2Mjg2NDU2ODR9.-ycyXy-zOJevkU1_Ezz7yfEVDknaWB6mPuw6oXXrmp4');
console.log(res, typeof res);